#!/bin/bash

count=0
lower=200
upper=10000

for id in `grep -v '^#' /etc/passwd | cut -d ':' -f3`
do
  if (( id >= lower )) && (( id <= upper ))
  then
    count=$((count+1))
  fi
done

echo There are $count users with an ID from $lower to $upper.
